<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
    <script language="javascript" type="text/javascript">
	$(function(){
		ADMIN.fileURL = '<?php echo $upload_control?>';
		ADMIN.infoURL = '<?php echo $info ?>';
		ADMIN.filter = '<?php echo $filter?>';
		ADMIN.culture = '<?php echo $sf_user->getCulture()?>';
		ADMIN.currentPath = '<?php echo $path?>';
		ADMIN.confirmRemove =  '<?php echo __('data_text_confirm',null,'upload_control')?>';
		ADMIN.errorNotDel = '<?php echo __('data_text_delete',null,'upload_control')?>';
		ADMIN.errorNotSelect= '<?php echo __('data_text_select',null,'upload_control')?>';
		ADMIN.init();
		LANG.current= '<?php echo $sf_user->getCulture()?>';
        LANG.current_text = '<?php echo __('language', null, 'lang')?>';
		LANG.init();
	});
</script>
  </head>
  <body>
  	<div style="border:1px solid #900">
	  	<div id="page-user-region">
	  		<div class="upload-control">
	  			<?php if(strpos($buttons, 'upload')!==false):?>
	  				<a href="#" class="upload" data-link="/admin<?php echo  url_for2('upload_control_upload',array('sf_culture'=>$sf_user->getCulture()))?>" title="<?php echo __('upload',null,'upload_control')?>" alt="<?php echo __('upload',null,'upload_control')?>"><?php echo __('upload',null,'upload_control')?></a>
	  			<?php endif; ?>
	  			<?php if(strpos($buttons, 'select')!==false):?>
	  			<a href="#" class="select" title="<?php echo __('select',null,'upload_control')?>" alt="<?php echo __('select',null,'upload_control')?>"><?php echo __('select',null,'upload_control')?></a>
	  			<?php endif; ?>
	  			<?php if(strpos($buttons, 'remove')!==false):?>
	  			<a href="#" class="remove" data-link="/admin<?php echo url_for2('upload_control_remove',array('sf_culture'=>$sf_user->getCulture()))?>" title="<?php echo __('remove',null,'upload_control')?>" alt="<?php echo __('remove',null,'upload_control')?>"><?php echo __('remove',null,'upload_control')?></a>
	  			<?php endif; ?>
	  			<?php if(strpos($buttons, 'rename')!==false):?>
	  			<a href="#" class="rename" data-link="/admin<?php echo url_for2('upload_control_rename',array('sf_culture'=>$sf_user->getCulture()))?>" title="<?php echo __('rename',null,'upload_control')?>" alt="<?php echo __('rename',null,'upload_control')?>"><?php echo __('rename',null,'upload_control')?></a>
	  			<?php endif; ?>
	  			<?php if(strpos($buttons, 'reload')!==false):?>
	  			<a href="#" class="reload" data-link="/admin<?php echo url_for2('upload_control_reload',array('sf_culture'=>$sf_user->getCulture()))?>" title="<?php echo __('reload',null,'upload_control')?>" alt="<?php echo __('reload',null,'upload_control')?>"><?php echo __('reload',null,'upload_control')?></a>
	  			<?php endif; ?>
	  			<?php if(strpos($buttons, 'mkdir')!==false):?>
	  			<a href="#" class="mkdir" data-link="/admin<?php echo url_for2('upload_control_mkdir',array('sf_culture'=>$sf_user->getCulture()))?>" title="<?php echo __('mkdir',null,'upload_control')?>" alt="<?php echo __('mkdir',null,'upload_control')?>"><?php echo __('mkdir',null,'upload_control')?></a>
	  			<?php endif; ?>
	  			<?php if(strpos($buttons, 'upload')!==false):?>
	  			<span>|</span><a class="language" style="padding-left:0px"></a>
	  			<?php endif; ?>
	  		</div>
	  		<div class="clr"></div>
	  	</div>
	  	<div id="page-content">
	  		<div id="page-content-left">
	  			<div id="inner">
	  				<div id="inner-bound" style="display: inline-block;">
	  					<?php include_component('uploadControl', 'navigator',array('path'=>$path, 'max_depth'=>$max_depth));?>
	  				</div>
	  			</div>
	  		</div>
	  		<div id="page-content-right">
	  			<div id="inner">
	  				<div id="result"></div>
	  			</div>
	  		</div>
	  		<div class="clr"></div>
	  	</div>
	  	<div id="page-footer" style="display:none">Designed by VNGuider Team - Viet Vo</div> 
	  </div>
  </body>
</html>
